# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# This PKGBUILD was autocreated.  See https://xtermin.us/archperl/ for details
# Maintainer: Charles Mauch <cmauch@gmail.com>

pkgname=perl-svn-simple-edit
pkgver=0.28
pkgrel=6
pkgdesc="Perl/CPAN Module SVN::Simple::Edit"
arch=('any')
url="https://search.cpan.org/dist/SVN-Simple/"
license=('GPL' 'PerlArtistic')
makedepends=('subversion')
options=(!emptydirs)
source=(https://www.cpan.org/authors/id/C/CL/CLKAO/SVN-Simple-$pkgver.tar.gz)
sha256sums=('d63cc169e4369be98a539abe9cc1611bfcc2b36966a6517e676688fed1884ffb')

build() {
  cd "$srcdir"/SVN-Simple-$pkgver
  PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
  make
}

package() {
  cd "$srcdir"/SVN-Simple-$pkgver
  make install DESTDIR="$pkgdir"
  find "$pkgdir" -name '.packlist' -delete
  find "$pkgdir" -name '*.pod' -delete
}
